#pragma once
#include "PipeMessage.h"

class GenericMessage : public PipeMessage
{
	int mResult;
	
protected:
	virtual UINT CreateBuffer(UINT _startPos = 0);
	virtual void ParseBuffer();
	virtual UINT GetBufferSize();

public:
	GenericMessage(MessageType _type, BYTE* _buff = NULL);

	int Result() const { return mResult; }
	void SetResult( int _res);
	
};

